<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@ page import="com.fengke.portal.config.HostConfig" %>
<%
	HostConfig hostConfig = (HostConfig) request.getSession().getServletContext().getAttribute("hostConfig");
%>
<!DOCTYPE html>
	<head>
		<base href="<%=hostConfig.getPortalHost() %>" />
		<title><%=hostConfig.getWebSiteName() %></title>
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1, maximum-scale=1, user-scalable=no">
		<script src="resources/travel/weixin/js/jquery.min.js"></script>
		<link href="resources/travel/weixin/css/bootstrap.min.css" rel="stylesheet" media="screen">
		<link href="resources/travel/weixin/css/bootstrap-theme.css" rel="stylesheet" media="screen">
		<link href="resources/travel/weixin/css/font-awesome.min.css" rel="stylesheet" media="screen">
		<link href="resources/travel/weixin/css/messenger.css" rel="stylesheet" media="screen">
		<link href="resources/travel/weixin/css/image.css" rel="stylesheet" media="screen">
		<link href="resources/travel/weixin/css/travel.css" rel="stylesheet" media="screen">
		<link href="resources/travel/weixin/jslib/icheck/skins/flat/blue.css" rel="stylesheet" media="screen">
		
		<script src="resources/travel/weixin/js/bootstrap.min.js"></script>
		<script src="resources/travel/weixin/js/bootbox.js"></script>
		<script src="resources/travel/weixin/js/messenger.js"></script>
		<script src="resources/travel/weixin/js/messenger-theme-future.js"></script>
		<script src="resources/travel/weixin/js/holder.js"></script>
		
		<script src="resources/travel/weixin/jslib/icheck/js/jquery.icheck.min.js"></script>
		<script src="resources/travel/weixin/js/application.js"></script>
		<script type="text/javascript" src="resources/shop/js/common.js"></script>
		
		<style>
		a:hover {
			text-decoration:none;
		}
		a:link {
			text-decoration:none;
		}
		</style>
		<style type="text/css" id="holderjs-style"></style>
	</head>
	<body>
		<div class="container blue_background">
	  
			<div class="row">
				<div class="detailloading col-xs-12 col-sm-12  animated fadeInLeftBig center_list   padding_0 pay_successful">
					<s:if test='orderVO.orderModel != null && paymentVO.paymentModel != null'>
						<img class="img-responsive" src="resources/travel/weixin/images/pay_successful.png">
					</s:if>
					<s:else>
						<img class="img-responsive" src="resources/travel/weixin/images/pay_failure.png">
					</s:else>
				    <p class="pay_words">温馨提示</p>
				</div>
				<div class="col-xs-12 col-sm-12 padding_10  pay_successful">
					<p class="pay_wordscontent">我们将于半小时内与您联系，如非工作时间，将于其后首个工作日10点左右与您联系，请保持手机畅通。</p>
				</div>
				<div class="col-xs-12 col-sm-12 padding_10 pay_successfulbtn_box">
					<s:if test='orderVO.orderModel != null && paymentVO.paymentModel != null'>
						<button type="button" class="btn submit_stroll pay_successful_btn" onclick="privewOrder()">查看订单</button><button type="button" class="btn submit_stroll margin_right0 pay_successful_btn pull-right margin_right0 on" onclick="privewIndex()">返回首页</button>
					</s:if>
					<s:else>
						支付回调失败
					</s:else>
				</div>
			</div>
			<!--<div id="topcontrol" style="position: fixed; bottom: 5.25em; right: 1em; opacity: 1; cursor: pointer;" title="Scroll Back to Top"><img src="images/up.png"></div>--> 
		</div>
	
		<!--电话资询弹出框-->
		<div class=" modal-sm modal_news animated fadeInLeftBig mobileModel" style="display: none">
			<div class="modal-content">
				<div class="modal-header">
					<h4 id="mySmallModalLabel" class="modal-title">提示</h4>
					<p>是否让购买了相同产品的人看到!</p>
				</div>
				<div class="modal-body clearfix modal_btngroup">
					<a class="sure btn mobileCancle" data-dismiss="modal">是</a>
					<a class="close btn mobileCancle" data-dismiss="modal"
						type="button">否</a>
				</div>
			</div>
			<!-- /.modal-content -->
		</div>
		<!-- /.modal-dialog -->
		<!--电话资询弹出框-->
	</body>
	<script type="text/javascript">
	
	function privewOrder(){
		window.location.href="travel/weixin/order/userOrderDetail.action?orderVO.orderModel.id=<s:property value='orderVO.orderModel.id' />";
	}
	function  privewIndex(){
		window.location.href="travel/weixin/index.html";
	}
	$(function(){
		$(".sure").click(function(){
			$.ajax({
				url: "travel/weixin/order/associateShow.action",
				type: "GET",
				data:{"orderVO.orderModel.id" : "<s:property value='orderVO.orderModel.id' />", "orderVO.orderModel.isAssociateShow" : true},
				dataType: "json",
				cache: false,
				success:function(data) {
					$(".mobileModel").hide();
				}
				
			});
		});	
		$(".close").click(function(){
			$(".mobileModel").hide();
		});	
	});
	</script>
	<s:if test='orderVO.orderModel != null && paymentVO.paymentModel != null'>
	<script type="text/javascript">
		//$(".mobileModel").show();
		$(".sure").click();
	</script>
	</s:if>
</html>